package com.woniuxy.qiantai.controller;

import com.woniuxy.dal.entity.Rangetype;
import com.woniuxy.servicelayer.RangetypeService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 靶场类型表(Rangetype)表控制层
 *
 * @author makejava
 * @since 2023-03-27 22:21:38
 */
@RestController
@RequestMapping("rangetype")
public class RangetypeController {
    /**
     * 服务对象
     */
    @Resource
    private RangetypeService rangetypeService;

    @GetMapping("categories")
    public List<Rangetype> categories() {
        return rangetypeService.list();
    }

}

